- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:fact-footnotes
- 90506:
Function test for xfi:fact-footnotes
Documentation
Tests of function xfi:fact-footnotes($item as element(), $linkrole as xs:string?, $arcrole as xs:string, $footnoterole as
xs:string?, $lang as xs:string) as xs:string
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
12-12-2008 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666
Test Case Variations
V-01
Fact 1, link role default, arcrole default, footnoterole default
Documentation
Inputs
Outputs
-
Result test:
count($result) eq 1 and
$result eq 'Footnote abc and def'
V-01a
Same as V-01 but empty sequence used to infer default roles
Documentation
Inputs
Outputs
-
Result test:
count($result) eq 1 and
$result eq 'Footnote abc and def'
V-02
Fact 2, link role default, arcrole default, footnoterole default
Documentation
Inputs
Outputs
-
Result test:
count($result) eq 2 and
index-of($result, 'Footnote abc and def') and
index-of($result, 'Footnote def only')
V-03
Fact 1, link role custom, arcrole default, footnoterole default
Documentation
Inputs
Outputs
-
Result test:
count($result) eq 1 and
$result eq 'Footnote link1 abc'
V-04
Fact 2, link role custom, arcrole default, footnoterole default
Documentation
Inputs
Outputs
-
Result test:
count($result) eq 1 and
$result eq 'Footnote link1 def'
V-05
Fact 1, link role custom, arcrole custom, footnoterole default
Documentation
Inputs
- schema: fact-footnotes-test1.xsd
- instance: footnotes-instance.xml
(DTS Discovery starting point)
(ID=V05)
-
Function Call:
xfi:fact-footnotes(//test:X[1],
'http://abc.com/role/link2',
'http://abc.com/arcrole/footnote-test',
'',
'en')
(against file V05)
Outputs
-
Result test:
count($result) eq 1 and
$result eq 'Footnote link2 note1'
V-06
Fact 2, link role custom, arcrole custom, footnoterole default
Documentation
Inputs
- schema: fact-footnotes-test1.xsd
- instance: footnotes-instance.xml
(DTS Discovery starting point)
(ID=V06)
-
Function Call:
xfi:fact-footnotes(//test:X[2],
'http://abc.com/role/link2',
'http://abc.com/arcrole/footnote-test',
'',
'en')
(against file V06)
Outputs
-
Result test:
count($result) eq 1 and
$result eq 'Footnote link2 note2'
V-07
Fact 1, link role custom, arcrole custom, footnoterole custom
Documentation
Inputs
- schema: fact-footnotes-test1.xsd
- instance: footnotes-instance.xml
(DTS Discovery starting point)
(ID=V07)
-
Function Call:
xfi:fact-footnotes(//test:X[1],
'http://abc.com/role/link2',
'http://abc.com/arcrole/footnote-test',
'http://abc.com/role/link3',
'en')
(against file V07)
Outputs
-
Result test:
empty($result)
V-08
Fact 2, link role custom, arcrole custom, footnoterole custom
Documentation
Inputs
- schema: fact-footnotes-test1.xsd
- instance: footnotes-instance.xml
(DTS Discovery starting point)
(ID=V08)
-
Function Call:
xfi:fact-footnotes(//test:X[2],
'http://abc.com/role/link2',
'http://abc.com/arcrole/footnote-test',
'http://abc.com/role/link3',
'en')
(against file V08)
Outputs
-
Result test:
count($result) eq 1 and
$result eq 'Footnote link2 note3'
Revisions
Name
|
On
|
Details
|
Herm Fischer |
12-12-2008 at 00:00:00 |
Created the test case.
|
Herm Fischer |
09-09-2010 at 00:00:00 |
Changed role URIs to strings for cast-less coding and to be similar to fn:QName's $paramURI, an xs:string.
|
Herm Fischer |
18-03-2011 at 09:00:00 |
Added test case V-01a for inferring default roles from empty sequence.
|